namespace mplat {
    export interface ISystem {
        getSystemInfoSync(): any;
        getLaunchOptionsSync(): any;

        loadSubpackage(name: string, success: () => void, progress: (res: any) => void, fail?: () => void): void
        isLongPhone(): boolean;
        onIOS(): boolean;
        onAdr(): boolean;
    }

    export class BaseSystem implements ISystem {
        getSystemInfoSync(): any {
            return {}
        }
        getLaunchOptionsSync(): any {
            return {}
        }

        loadSubpackage(name: string, success: () => void, progress: (res: any) => void, fail?: () => void): void {
            if (!!success) success();
        }

        /** 是否长屏手机 */
        isLongPhone() {
            return false;
        }
        onIOS() {
            return false;
        }
        onAdr() {
            return false;
        }
    }
}